*{
    margin: 0;
    padding: 0;
}
html,body,#root ,.app{
    height: 100%;
}
/* header组件 */
.header{
    display: flex;
    justify-content: space-between;
    line-height: 50px;
    padding: 0 20px;
    background-color: #f5f5f5;
}
.header.light{
    background-color: orange;
    color: white;
}

/* tabbar组件 */
.tabbar{
    position: fixed;
    width: 100%;
    bottom: 0;
    height: 60px;
    display: flex;
    justify-content: space-between;
    padding: 5px 20px;
    background-color: #f5f5f5;
}
.tabbar .block{
    width: 20%;
    text-decoration: none;
    color: #333;
    text-align: center;
}
.tabbar .block.active{
    color: lightskyblue;
}
.tabbar .block img{
    border-radius: 5px;
}


.swiper-container{
    height: 200px;
}
.swiper-container img{
    width: 100%;
}

/* 所有商品 */
.allgood-page{
    display: flex;
    flex-direction: column;
    height: 100%;
}
.allgood-page .main{
    flex: 1;
    display: flex;
    margin-bottom: 70px;
}

.allgood-page .main .nav{
    text-align: center;
    line-height: 50px;
    width: 80px;
    background-color: #f5f5f5;
    height: 100%;;
}
.allgood-page .main .nav .nav-item{
    border-bottom: 1px solid #888888;
}
.allgood-page .main .nav .nav-item.active{
    color: lightskyblue;
}

.allgood-page .main .list{
    flex: 1;
}

.allgood-page .main .list .item{
    position: relative;
    display: flex;
    margin: 20px;
}

.allgood-page .main .list .item .pic{
    width: 25%;
    margin-right: 20px;
}
.allgood-page .main .list .item .pic img{
    width: 100%;
}
.allgood-page .main .list .item .text{
    width: 75%;
}

.allgood-page .main .list .item .btn{
    position: absolute;
    right: 0;
    bottom: 20px;
    border: 1px solid #888888;
    border-radius: 5px;
    text-align: center;
    padding: 0 20px;
    line-height: 30px;
}



/* 收藏页 列表 */
.collect-page .list{
    flex: 1;
}

.collect-page .list .item{
    position: relative;
    display: flex;
    margin: 20px;
}

.collect-page .list .item .pic{
    width: 25%;
    margin-right: 20px;
}
.collect-page .list .item .pic img{
    width: 100%;
}
.collect-page .list .item .text{
    width: 75%;
}

.collect-page .list .item .btn{
    position: absolute;
    right: 0;
    bottom: 20px;
    border: 1px solid #888888;
    border-radius: 5px;
    text-align: center;
    padding: 0 20px;
    line-height: 30px;
}

.collect-page .empty{
    text-align: center;
    padding: 50px 0;
}